#pragma once
#include <QDialog>
#include <QLineEdit>
#include <QPushButton>
#include <QLabel>
#include <QComboBox> // 新增
#include <QShowEvent>
#include <QCloseEvent>
#include "Keyboard/KeyboardManager.h"

using namespace AeaQt;

class CabinetDialog : public QDialog
{
    Q_OBJECT

public:
    explicit CabinetDialog(const QString &title, QWidget *parent = nullptr);
    virtual ~CabinetDialog();

    QLineEdit *phoneEdit;
    QLineEdit *pwdEdit;
    QComboBox *layerCombo; // 新增：物理层选项

protected:
    void showEvent(QShowEvent *event) override;
    void closeEvent(QCloseEvent *event) override;

private:
    Keyboard *keyboard;
};